package com.youhui.weixin.common.info;

import com.youhui.weixin.common.exception.ExceptionMap;

import static com.youhui.weixin.common.exception.ExceptionMap.init;

/**
 * Created by https://github.com/kuangcp on 17-10-4  上午10:08
 * 错误码和异常信息的存放处
 */
public interface MythExceptionList {
    ExceptionMap LOAD_FILE_EXCEPTION = init(1001, "加载指定路径下文件失败");
    ExceptionMap GET_CONNECTION_EXCEPTION = init(1002, "获取数据库连接异常");
    ExceptionMap LOAD_DRIVER_EXCEPTION = init(1003, "加载驱动异常");
    ExceptionMap EXECUTE_EXCEPTION = init(1004, "数据库语句执行异常");
    ExceptionMap ROLLBACK_EXCEPTION = init(1005, "数据库事务性回滚异常");
    ExceptionMap AUTO_COMMIT = init(1006, "设置自动提交失败");
    ExceptionMap CLOSE_EXCEPTION = init(1007,"关闭数据库资源异常");
    ExceptionMap CLOSE_IO_EXCEPTION = init(1007,"关闭输入输出流异常");
    ExceptionMap PARSE_TYPE_EXCEPTION = init(1008, "数据类型转换异常");
    ExceptionMap IO_READ_EXCEL_EXCEPTION = init(1009, "IO异常 读取Excel时");
    ExceptionMap MULTI_READ_EXCEL_EXCEPTION = init(1009, "多线程读取Excel异常");
    ExceptionMap READ_EXCEL_ROW_NPE = init(1015, "读取Excel时读到的行为空");
    ExceptionMap IO_READ_JSON_EXCEPTION = init(1009, "IO异常 读取JSON时");
    ExceptionMap LOAD_CLASS_EXCEPTION = init(1010, "加载类异常");
    ExceptionMap JSON_PROCESSING_EXCEPTION = init(1011, "JSON处理进程异常，请重试");
    ExceptionMap REQUEST_FAILED = init(1012, "HTTP请求失败，请检查网络连接");
    ExceptionMap REQUEST_READ_XML_FAILED = init(1013, "读取请求中的XML失败，请检查服务器配置");
    ExceptionMap CREATE_MENU_FAILED = init(1014, "创建菜单失败，请检查配置");

}
